# print(abs(-34))
# s = input()
# print(s)
# # print(type(s))
# s = open('read.txt')
# print(s)
# print(type(s))
# for i in s :
#     print(i)
# i = input('<><><<')
# print("__name__",__name__)
# if __name__ == '__main__':
#     print("print")
import sys
from functools import reduce

# print(sys.modules)

# sys.api_version

#
# i = bytearray()
# i = bytearray('ffffck','utf-8')

# i = open('read.txt',encoding='utf-8')
# print(i.read())

# 2+22+222+2222+22222+222222+2222222+.....
# a = input('a:')
# if int(a) > 9:
#     print('a不能大于10')
#     a = input('a:')
# n = input('n:')
# y = 0
# for i in range(int(n)):
#     x = str(a) * (i+1)
#     y = y + int(x)
#     print(x)
# print('和为',y)

# 猴子吃桃问题：猴子第一天摘下若干个桃子，
# 当即吃了一半，还不瘾，又多吃了一个第二天早上又将剩下的桃子吃掉一半，
# 又多吃了一个。以后每天早上都吃了前一天剩下的一半零一个。到第10天早上想再吃时，
# 见只剩下一个桃子了。求第一天共摘了多少。
#
# 程序分析：采取逆向思维的方法，从后往前推断
# x = 1
# for i in range(9):
#     y = (x + 1) * 2
#     x = y
# print(x)
# a = range(10)
# print(type(a))
# def digui(x):
#     sum  = 1
#     for i in range(1, x + 1):
#         sum = sum * i
#     return sum
#
#
# print(digui(5))

# 题目：给一个不多于5位的正整数，要求：一、求它是几位数，二、逆序打印出各位数字。
#
# 程序分析：学会分解出每一位数
# x = input('请输入一个数')
# a = int(x) // 10000
# b = int(x) % 10000 // 1000
# c = int(x) % 1000 // 100
# d = int(x) % 100 // 10
# e = int(x) % 10
# if a != 0:
#     print("5weishu:",e,d,c,b,a)
# elif b != 0:
#     print('4weishu:',d,c,b,a)
# elif c != 0:
#     print('3weishu:',c,b,a)
# elif d != 0:
#     print('2weishu',d,e)
# elif e != 0:
#     print('1weiishu',e)

# a = [1,3,5,7,8,9,0]
# b = ':'.join(str(n) for n in a)
# print(b)

# def varfunc():
#     var = 0
#     print('var = %d' % var)
#     var += 1
#
#
# if __name__ == '__main__':
#     for i in range(3):
#         varfunc()
#
#
# # 类的属性
# # 作为类的一个属性吧
# class Static:
#     StaticVar = 5
#
#     def varfunc(self):
#         self.StaticVar += 1
#         print(self.StaticVar)
#
#
# print(Static.StaticVar)
# a = Static()
# for i in range(3):
#     a.varfunc()

# num = 2
#
#
# def autofunc():
#     num = 1
#     print('internal block num = %d' % num)
#     num += 1
#
#
# for i in range(3):
#     print('The num = %d' % num)
#     num += 1
#     autofunc()


# def exchange(a, b):
#
#     a = b
#     b = a
#     return (a, b)
#
#
# if __name__ == '__main__':
#     x = 10
#     y = 20
#     print('x = %d,y = %d' % (x, y))
#
#     x, y = exchange(x, y)
#     print('x = %d,y = %d' % (x, y))

#
# print(type(__import__))
# print(__import__)
# print(help(__import__))
# import importlib
# importlib.import_module()


# import random
# print(random.random())

# a = 0x77
# b = a & 3
# print(b)
# c = b & 4
# print(c)
import os

if __name__ == '__main__':
    from tkinter import *

    canvas = Canvas(width=800, height=600, bg='yellow')
    canvas.pack(expand=YES, fill=BOTH)
    k = 1
    j = 1
    for i in range(0, 26):
        canvas.create_oval(310 - k, 250 - k, 310 + k, 250 + k, width=1)
        k += j
        j += 0.3

    mainloop()

# a = []
# a.append(1)
# a.append([2,3])
# a.append(3)
# print(a)
# print(len(a))
# for i in range(6):
#     print(i)

# 题目：海滩上有一堆桃子，五只猴子来分。
# 第一只猴子把这堆桃子平均分为五份，多了一个，这只猴子把多的一个扔入海中，拿走了一份。
# 第二只猴子把剩下的桃子又平均分成五份，又多了一个，它同样把多的一个扔入海中，拿走了一份，
# 第三、第四、第五只猴子都是这样做的，问海滩上原来最少有多少个桃子？


# def huantaozi(x):
#     y = x * 5 + 1
#     for i in range(5):
#         huantaozi(y)
#     return y

# 809*??=800*??+9*??
# 其中??代表的两位数,
# 809*??为四位数，
# 8*??的结果为两位数，
# 9*??的结果为3位数。
# 求??代表的两位数，及809*??后的结果。

# for x in range(10,100):
#     if 10 > 809 * x // 1000 > 0:
#         if 0 < 8 * x // 10 < 10:
#             if 0 < 9 * x // 100 < 10:
#                 if 809 * x == 800 * x + 9 * x:
#                     print(x)
#                     print(809 * x)

# 输入一个奇数，然后判断最少几个 9 除于该数的结果为整数
# x = int(input('输入一个奇数'))
# if x % 2 == 0:
#     x = int(input('输入一个奇数'))
#
# s = ''
# i = 1
# while True:
#     s = s + '9'
#
#     if int(s) % x == 0:
#         print('第',i,'个9')
#         break
#     i += 1

# if __name__ == '__main__':
#     import time
#
#     start = time.time()
#     print(start)
#     for i in range(3000):
#         print(i)
#     end = time.time()
#     print(end)
#     print(end-start)

# s = 'ffffck'
# a = s.count('fffck')
# a = s.upper()
# print(a)
# dict()

